import {
  Entity,
  PrimaryGeneratedColumn,
  Column,
  OneToMany,
} from "../../../package/index.js";
import { Photo } from "./photo.entity.js";

@Entity("sample_many_to_one_user")
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  name: string;

  @OneToMany(() => Photo, (photo) => photo.user)
  photos: Photo[];
}
